package com.xndc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Netty服务器配置
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "netty.server")
public class NettyConfig {
    
    /**
     * Netty服务器端口号
     */
    private int port = 9000;
    
    /**
     * 设备消息最大长度
     */
    private int maxFrameLength = 65535;
    
    /**
     * 工作线程数
     */
    private int workerThreads = 0;
} 